package designmode.factory;

/**
 * Created by fuchaoyang on 2018/4/20.<br/>
 * description：
 */

public class AmdMainboard implements IMainboard {
  /**
   * CPU插槽的孔数
   */
  private int cpuHoles = 0;

  /**
   * 构造方法，传入CPU插槽的孔数
   */
  public AmdMainboard(int cpuHoles) {
    this.cpuHoles = cpuHoles;
  }

  @Override public void installCPU() {
    System.out.println("AMD主板的CPU插槽孔数是：" + cpuHoles);
  }
}
